﻿using APP.QUANLY.Common;
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace RMAS
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            bool bKQ = false;
            StaticVar_Provider _prov = new StaticVar_Provider();
            bKQ = _prov.LoadAll();
            if (!bKQ)
            {
                MessageBox.Show("Thông tin cấu hình không phù hợp");
                frmConfigConnect ketnoi = new frmConfigConnect();
                ketnoi.ShowDialog();
            }
            else
            {
                frmLogin login = new frmLogin();
                login.ShowDialog();
                if (login.OK)
                {
                    //Application.Run(new frmMain());
                    Application.Run(new frmImportProduct());
                }
            }

           
        }
    }
}